package com.etlmaster.executor.steps.table;


import com.etlmaster.executor.JobMeta;
import com.etlmaster.executor.StepMeta;


public class EmptyTableStepMeta extends StepMeta {
	


	protected String dsName;
	protected String userName;
	protected String password;
	protected String tableName;
	
	public EmptyTableStepMeta(String id, String name,String step_code, String session_id, String paramStr) {
		super(id, name,step_code, session_id, paramStr);
	}

	public String getTableName() {
		return variableSubstitution(tableName);
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDsName() {
		return variableSubstitution(dsName);
	}

	public void setDsName(String dsName) {
		this.dsName = dsName;
	}

	public String getUserName() {
		return variableSubstitution(userName);
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return variableSubstitution(password);
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	protected void loadParamsFromConfigTable() {
		
		
	}
	/*
	public void getdbInfo(){
		JdbcTemplate jdbcTemplate =getJdbcTemplate(); 
		//初始化用户名,初始化密码
		String teamCode=getJobMeta().getTeamCode();
		
		Map<String,Object> dbUserInfo=DataCollectionUtils.fetchDBUserInfoByTeam(getDsName(), teamCode, jdbcTemplate);
		userName= dbUserInfo.get("username").toString();
		password=dbUserInfo.get("password").toString();
	}*/

}
